<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>    
    <title>Document</title>
</head>
<body>
<div id="app">
    <h2>语法糖是指在不影响功能的情况下，添加某种方法实现同样的效果，便于开发，简称缩写</h2>
    <button v-on:click="show = !show">点击</button>
    <button @click="show = !show">点击2</button>
    <p v-show="show">阿萨德</p>
</div>

<script>
    let vm = new Vue({
        el:"#app",
        data:{
            show:true
        }
    })
</script>
</body>
</html>